/*
 * @Date: 2022-03-02 09:57:02
 * @LastEditors: zhaoxm
 * @LastEditTime: 2022-04-12 13:50:18
 * @Description: 处理日期
 */

import dayjs from "dayjs"

export const formatDate = (timeStamp, template = "YYYY-MM-DD HH:mm:ss") => {
  if (!timeStamp) return ""
  return dayjs(timeStamp).format(template)
}
